﻿namespace smp.ButterflyCakes.Models.Data
{
    public class DomainResponse
    {
        public DomainResponse(Stage nextStage)
        {
            WasSuccesful = true;
            IsLastStage = false;
            NextStage = nextStage;
        }

        public DomainResponse(bool isLastStage, Stage nextStage)
        {
            WasSuccesful = true;
            IsLastStage = isLastStage;
            NextStage = nextStage;
        }

        public DomainResponse(string errorMessage)
        {
            WasSuccesful = false;
            IsLastStage = false;
            ErrorMessage = errorMessage;
        }
        
        public bool WasSuccesful { get; private set; }
        public bool IsLastStage { get; private set; }
        public string ErrorMessage { get; private set; }
        public Stage NextStage { get; private set; }
    }
}
